package com.hera.process.config.dao;


import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

import com.hera.base.dao.repository.BaseRepository;
import com.hera.process.config.domain.Holiday;

public interface HolidayDao extends BaseRepository<Holiday, Long> {

	@Modifying
	@Transactional
	@Query("delete from Holiday o where o.calendar.idCalendar = ?")
	void deleteByCalendar(Long idCalendar);

}
